Skip to content

Fix error message handling in change-password plugin - #2156

Merged
the-djmaze merged 2 commits into
the-djmaze:masterfrom
stefansieg:fix/change-password-error-messages
Nov 25, 2026
Merged

the-djmaze merged 2 commits into
the-djmaze:masterfrom
stefansieg:fix/change-password-error-messages

Conversation

@stefansieg

Copy link
Copy Markdown

The change-password plugin passes an undefined ErrorMessageAdditional value to rl.i18n(), causing a JavaScript exception.

This PR:

  • Resolves translated error messages directly from the existing password change error codes.
  • Provides a generic fallback for unknown errors.
  • Replaces the duplicate German translation entry with the missing COULD_NOT_SAVE_NEW_PASSWORD translation.

Tested with SnappyMail 3.0.1 and change-password 3.1.

LLM assistance was used for code analysis and patch preparation.

Related to #2028.

@the-djmaze the-djmaze added bug Something isn't working extensions (plugin) labels Nov 25, 2026
@the-djmaze
the-djmaze merged commit 324493f into the-djmaze:master Nov 25, 2026
the-djmaze added a commit that referenced this pull request Nov 25, 2026
@stefansieg
stefansieg deleted the fix/change-password-error-messages branch November 26, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working extensions (plugin)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants